
<!-- VsPager BEGIN -->
{* Template Debug
Page: {$page}<br />
Pages Count: {$pagesNum}<br />
Items Count: {$totalItemsCount}<br /><br />
*}
<div id="pager" class="menu_navigation">
	<div id="left">
		<!--<div class="left"><img src="images/more_l.jpg" width="20" height="20" alt="more" title="more" border="0" class="more" /></div>-->
	
	{if $page > 1}
		<div class="right"><a href='{$smarty.server.PHP_SELF}?{$query}&pgr={math equation="x - y" x=$page y=1}'>Previous</a></div>
	{else}
		<div class="right"><span class="current">Previous</span></div>
	{/if}
	
	</div>
	
	<div id="center">
{counter start=1 assign='i'}
{section name=pl loop=$pagesNum}
	{if $page == $i}
		<span class="current">{$i}</span>
	{else}
		<a href="{$smarty.server.PHP_SELF}?{$query}&pgr={$i}" title=\"Go to page {$i}">{$i}</a>
	{/if}

	{counter}
{/section}

	</div>
	
	<div id="right">

	{if $page < $pagesNum}
		<div class="right"><a href='{$smarty.server.PHP_SELF}?{$query}&pgr={math equation="x + y" x=$page y=1}'>Next</a></div>
	{else}
		<div class="right"><span class="current">Next</span></div>
	{/if}

		<!--<div class="left"><img src="images/more.jpg" width="20" height="20" alt="more" title="more" border="0" class="more" /></div>-->
	</div>
</div>
<!-- VsPager END -->
